package io.renren.modules.avanotes.dao;

import io.renren.modules.avanotes.entity.ReciteRecordEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户背单词记录表
 * 
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-07 14:09:40
 */
@Mapper
public interface ReciteRecordDao extends BaseMapper<ReciteRecordEntity> {


    @Select("select v_id from recite_record where tu_id=#{userId} order by v_id desc limit 1")
	Long getMaxVIdByUserId(@Param("userId") long userId);
}
